import { groupBy } from "lodash"
// 当月使用电量
export const Dianli = {
    data: [
        {
            labelName: '北京',
            value: 110,
        },
        {
            labelName: '上海',
            value: 220,
        },
        {
            labelName: '安徽',
            value: 330,
        },
        {
            labelName: '深圳',
            value: 440,
        },
        {
            labelName: '银川',
            value: 441,
        },
    ], title: "资源池算力TOP"

}
// 历史使用电量
export const useDianliangHistory = {
    mData: [
        {
            "labelName": "1",
            "value": 50,
            "category": "北京"
        },
        {
            "labelName": "1",
            "value": 20,
            "category": "上海"
        },
        {
            "labelName": "1",
            "value": 30,
            "category": "安徽"
        },
        {
            "labelName": "1",
            "value": 10,
            "category": "深圳"
        },
        {
            "labelName": "2",
            "value": 4,
            "category": "北京"
        },
        {
            "labelName": "2",
            "value": 6,
            "category": "上海"
        },
        {
            "labelName": "2",
            "value": 7,
            "category": "安徽"
        },
        {
            "labelName": "2",
            "value": 8,
            "category": "深圳"
        },
        {
            "labelName": "3",
            "value": 4,
            "category": "北京"
        },
        {
            "labelName": "3",
            "value": 6,
            "category": "上海"
        },
        {
            "labelName": "3",
            "value": 7,
            "category": "安徽"
        },
        {
            "labelName": "3",
            "value": 8,
            "category": "深圳"
        },
    ],
    wData: [
        {
            "labelName": "1",
            "value": 5,
            "category": "北京"
        },
        {
            "labelName": "1",
            "value": 20,
            "category": "上海"
        },
        {
            "labelName": "1",
            "value": 30,
            "category": "安徽"
        },
        {
            "labelName": "1",
            "value": 10,
            "category": "深圳"
        },
        {
            "labelName": "2",
            "value": 4,
            "category": "北京"
        },
        {
            "labelName": "2",
            "value": 6,
            "category": "上海"
        },
        {
            "labelName": "2",
            "value": 7,
            "category": "安徽"
        },
        {
            "labelName": "2",
            "value": 8,
            "category": "深圳"
        },
        {
            "labelName": "3",
            "value": 4,
            "category": "北京"
        },
        {
            "labelName": "3",
            "value": 6,
            "category": "上海"
        },
        {
            "labelName": "3",
            "value": 7,
            "category": "安徽"
        },
        {
            "labelName": "3",
            "value": 8,
            "category": "深圳"
        },
    ],
    type:[{label:'月',value:'m'},{label:'周',value:'w'}],
    title: "近期订单数趋势"
}
// 机器使用情况
export const Jiqi = {
    data: [
        {
            labelName: '北京',
            value: 110,
            "type": "使用中"
        },
        {
            labelName: '上海',
            value: 220,
            "type": "使用中"
        },
        {
            labelName: '安徽',
            value: 330,
            "type": "使用中"
        },
        {
            labelName: '深圳',
            value: 4,
            "type": "使用中"
        },
        {
            labelName: '北京',
            value: 5,
            "type": "空闲"
        },
        {
            labelName: '上海',
            value: 20,
            "type": "空闲"
        },
        {
            labelName: '安徽',
            value: 13,
            "type": "空闲"
        },
        {
            labelName: '深圳',
            value: 24,
            "type": "空闲"
        },
    ],
    title: "算力池机器使用情况",
}
export const jigui = {
    data: [
        {
            labelName: '已售',
            value: 27,
        },
        {
            labelName: '空闲',
            value: 25,
        },
    ],
    title: "机柜使用概况"
}
// 算力类型
export const suanliType = {
    data: [
        {
            labelName: 'A',
            value: 27,
        },
        {
            labelName: 'B',
            value: 25,
        },
        {
            labelName: 'C',
            value: 19,
        },
    ],
    title: "算力类型"
}
// 销售数据
export const saleData = {
    data: [
        {
            labelName: '20周',
            value: 110,
        },
        {
            labelName: '19周',
            value: 220,
        },
        {
            labelName: '18周',
            value: 330,
        },
        {
            labelName: '17周',
            value: 440,
        },
        {
            labelName: '16周',
            value: 441,
        },
    ], title: "销售趋势"

}
// 数字类
export const numData = {
    data: [
        {
            labelName: '算力机总数',
            value: 110,
        },
        {
            labelName: '新增数',
            value: 220,
        },
        {
            labelName: '售卖数',
            value: 330,
        },
      
    ],
}
// 机柜
export const numData3 = {
    data: [
        {
            labelName: '机柜总数',
            value: 110,
        },
        {
            labelName: '新增数',
            value: 220,
        },
        {
            labelName: '售卖数',
            value: 330,
        },
      
    ],
}
// 数字类2
export const numData2 = {
    data: [
        {
            labelName: '租户数',
            value: 110,
        },
        {
            labelName: '用户数',
            value: 220,
        },
        {
            labelName: '总算力',
            value: 330,
        },
        {
            labelName: '总功率',
            value: 330,
        },
        {
            labelName: '资源池',
            value: 330,
        },
        {
            labelName: '机柜数',
            value: 330,
        },
        {
            labelName: '主机数',
            value: 330,
        },
        {
            labelName: '订单总数',
            value: 330,
        },
      
    ],
    title:"关键指标"
}
export const SortListData={
    data:[
        {
            labelName:"北京",
            value:510
        },
        {
            labelName:"上海",
            value:220
        },
        {
            labelName:"安徽",
            value:330
        },
        {
            labelName:"深圳",
            value:440
        },
        {
            labelName:"银川",
            value:441
        },
        {
            labelName:"西安",
            value:409
        },
        {
            labelName:"成都",
            value:412
        },
        {
            labelName:"三亚",
            value:411
        },
        {
            labelName:"珠海",
            value:444
        },
    ],
    title:"购买算力租户TOP",
    subTitle:"近30日",
}